package priv.yiyuan.example.design.wrapper;

/**
 * 格式化装饰器
 * <p>
 * 装饰器模式-具体装饰器
 *
 * @author YiYuan
 * @data 2025/9/3
 * @apoNote
 */
public class FormatterDecorator extends ElementDecorator {

    private String prefix;

    private String suffix;

    public FormatterDecorator(ResumeElement decoratedElement, String prefix, String suffix) {
        super(decoratedElement);
        this.prefix = prefix;
        this.suffix = suffix;
    }

    @Override
    public String render() {
        return prefix + super.render() + suffix;
    }
}
